<?php
class File {

    /**  Speicherplatz für überladene Daten.  */
    private $data = array();

    function __construct(){
        $this->data = $_FILES;
    }
    public function __get($name) {
        if (array_key_exists($name, $this->data)) {
            return $this->data[$name];
        }else{
            return null;
        }
    }
    public function __isset($name) {
        return isset($this->data[$name]);
    }
    public function __unset($name) {
        unset($this->data[$name]);
    }
    public function delfile($pfad){
    	if($pfad != 'D:/www/xampp/htdocs/test/media/user/nopic.png'){
    		return unlink($pfad);
    	}
    }

}

?>